package com.liu.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * Created by liu on 17-9-18.
 */
@Entity
public class health {
    @Id
    private int id;     //卫生表编号
    private int R_id;   //寝室编号
    private String room_id;   //页面显示的寝室号
    private String rank=" ";    //评分的等级(良好中差)
    @Temporal(TemporalType.DATE)
    private Date date = new Date();//检查日期

    public String getRoom_id() {
        return room_id;
    }

    public void setRoom_id(String room_id) {
        this.room_id = room_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getR_id() {
        return R_id;
    }

    public void setR_id(int r_id) {
        R_id = r_id;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "{" +
                "\"id\":" + id +
                ", \"R_id\":" + R_id +
                ", \"rank\":\"" + rank + '\"' +
                ", \"room_id\":\"" + room_id + '\"' +
                ", \"date\":\"" + date + '\"' +
                '}';
    }
}
